package com.xd.springboot.service;

import com.xd.springboot.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    User getUserByName(String name);

    User getUser(Long id);

    User getUser(Long id, String name);

    List<User> getAll();

     void insertUser(User user);

    void insertUser2(User user) throws Exception;

    void insertUser3(User user) throws Exception;

    void insertUser4(User user) throws Exception;
}
